package com.chen.longchain4jdemo;

import dev.langchain4j.store.embedding.EmbeddingStore;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class LongChain4jDemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(LongChain4jDemoApplication.class, args);
        String[] beanNames = context.getBeanNamesForType(EmbeddingStore.class);
        for (String name : beanNames) {
            System.out.println("- " + name + " : " + context.getBean(name).getClass().getName());
        }
    }
}
